package com.huiquan.management.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.huiquan.framework.base.ReturnData;
import com.huiquan.management.service.StaticDataService;

@Controller
public class StaticDataController {

	@Autowired
	private StaticDataService staticDataService;

	
	@ResponseBody
	@RequestMapping(value = "/management/update_static_data.do")
	public ReturnData updateParam(HttpServletRequest req, HttpServletResponse resp) throws Exception {
		String codeType = req.getParameter("codeType");
		String value = req.getParameter("value");

		return staticDataService.update(codeType, value);
	}
}
